﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LayToaCu.aspx.cs" Inherits="ToaThuoc_PAK.LayToaCu" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>Lấy toa thuốc cũ</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="css/nghiepvuy.css" type="text/css" rel="stylesheet">
	</HEAD>
	<body bottomMargin="0" leftMargin="0" topMargin="0" rightMargin="0">
		<form id="Form1" method="post" runat="server">
			<TABLE id="Table1" style="Z-INDEX: 101; LEFT: 0px; POSITION: absolute; TOP: 0px" height="100%"
				cellSpacing="0" cellPadding="0" width="100%" border="0">
				<TR>
					<TD vAlign="top">
						<TABLE id="Table2" cellSpacing="0" cellPadding="0" width="100%" border="0">
							<TR>
								<TD align="center" background="rs/barvs2k5.gif" height="24"><asp:label id="Label1" runat="server" ForeColor="White" Font-Bold="True">DANH SÁCH ĐƠN THUỐC</asp:label></TD>
							</TR>
							<TR>
								<TD align="center" height="15"></TD>
							</TR>
							<TR>
								<TD align="left" height="20">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
									<asp:label id="Label2" runat="server" Width="64px">- Mã BN :</asp:label><asp:label id="lblMaBN" runat="server" ForeColor="Navy" Font-Bold="True"></asp:label></TD>
							</TR>
							<TR>
								<TD align="left" height="20">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
									<asp:label id="Label3" runat="server" Width="64px">- Họ tên :</asp:label><asp:label id="lblHoten" runat="server" ForeColor="Navy" Font-Bold="True"></asp:label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
									<asp:label id="Label5" runat="server">- Tuổi :</asp:label>&nbsp;
									<asp:label id="lbltuoi" runat="server" ForeColor="Navy" Font-Bold="True"></asp:label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
									<asp:label id="Label6" runat="server">- Giới tính :</asp:label>&nbsp;
									<asp:label id="lblgioitinh" runat="server" ForeColor="Navy" Font-Bold="True"></asp:label></TD>
							</TR>
							<TR>
								<TD align="left" height="20">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
									<asp:label id="Label4" runat="server" Width="64px">- Địa chỉ :</asp:label><asp:label id="lbldiachi" runat="server" ForeColor="Navy" Font-Bold="True"></asp:label></TD>
							</TR>
							<TR>
								<TD align="left" height="10"></TD>
							</TR>
							<TR>
								<TD align="left"><asp:datagrid id="grd" runat="server" AutoGenerateColumns="False" GridLines="Vertical" CellPadding="3"
										BackColor="White" BorderWidth="1px" BorderStyle="None" BorderColor="#999999">
										<FooterStyle ForeColor="Black" BackColor="#CCCCCC"></FooterStyle>
										<SelectedItemStyle Font-Bold="True" ForeColor="White" BackColor="#008A8C"></SelectedItemStyle>
										<AlternatingItemStyle BackColor="Gainsboro"></AlternatingItemStyle>
										<ItemStyle ForeColor="Black" BackColor="#EEEEEE"></ItemStyle>
										<HeaderStyle Font-Bold="True" ForeColor="White" BackColor="#000084"></HeaderStyle>
										<Columns>
											<asp:EditCommandColumn HeaderText="#" ButtonType="PushButton" UpdateText="Update" CancelText="Cancel" EditText="Chọn"></asp:EditCommandColumn>
											<asp:BoundColumn DataField="mapk" HeaderText="Mã PK"></asp:BoundColumn>
											<asp:BoundColumn DataField="sngaykham" HeaderText="Ng&#224;y"></asp:BoundColumn>
                                            <asp:TemplateColumn HeaderText="Đơn thuốc">
                                                <EditItemTemplate>
                                                    <asp:TextBox runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.sdonthuoc") %>'></asp:TextBox>
                                                </EditItemTemplate>
                                                <ItemTemplate>
                                                    <asp:Label runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.sdonthuoc") %>' Style="white-space:nowrap;"></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
											<asp:BoundColumn DataField="hoten" HeaderText="B&#225;c sĩ"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="chandoan" HeaderText="Chẩn đo&#225;n"></asp:BoundColumn>
										</Columns>
										<PagerStyle HorizontalAlign="Center" ForeColor="Black" BackColor="#999999" Mode="NumericPages"></PagerStyle>
									</asp:datagrid><asp:literal id="lenhDienThongTin" runat="server"></asp:literal></TD>
							</TR>
						</TABLE>
					</TD>
				</TR>
			</TABLE>
		</form>
	</body>
</HTML>

